//
// Created by Administrator on 2025/4/13.
//

#ifndef STATEMACHINE_ERRORMODE_H
#define STATEMACHINE_ERRORMODE_H

#include "BaseState.h"
#include "StateManager.h"
#include "StateMachine.h"
#include "NorthMode.h"

class ErrorMode: public BaseState{
public:
    enum {ID = 5};
    ErrorMode();
    //重写基类虚函数
    virtual void onEntry();
    virtual bool handleEvent(StateMachine* machine,const Event* event);
    virtual int getID() const;
    virtual std::string getStateName() const;
private:
    int _errCode;
    std::string _errMsg;
};


#endif //STATEMACHINE_ERRORMODE_H
